package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.AlbumDao;
import com.easyweb.model.Album;
import com.easyweb.service.AlbumService;

@Service
public class AlbumServiceImpl implements AlbumService{
	
	@Autowired
	private AlbumDao albumDao;

	public int insertAlbum(Album album) {
		return albumDao.insertAlbum(album);
	}

	public int deleteAlbumById(Map<String, Object> map) {
		return albumDao.deleteAlbumById(map);
	}

	public int updateAlbum(Album album) {
		return albumDao.updateAlbum(album);
	}

	public List<Album> getAlbums(Map<String, Object> map) {
		return albumDao.getAlbums(map);
	}

	public Album getAlbumById(Map<String, Object> map) {
		return albumDao.getAlbumById(map);
	}

}
